<div class="users form">
{{if $current_action=='admin_add'}}
<?php 
echo $this->MForm->create($current_model,array(
	'url' => array('action' => 'add'),
));
?>
{{elseif $current_action=='admin_edit'}}
 <?php 
echo $this->MForm->create($current_model,array(
	'class'=>'form-horizontal form',
    'url' => array('action' => 'edit',$id,$copy),
));
?>
{{/if}}
<fieldset>
    	 
            <ul class="nav nav-tabs">
                <li class="active"><a href="#article-main" data-toggle="tab"><span>{{__('Basic Info')}} ()</span></a></li>
                <li><a href="#article-publishing" data-toggle="tab"><span>{{__('Advanced Options')}}</span></a></li>
            </ul>
            <div class="tab-content">
                <div id="article-main" class="tab-pane active">
                	 <?php
                	 	echo $this->MForm->input('id');
						 echo $this->MForm->input('cate_id');
				         echo $this->MForm->input('appkey');
				         echo $this->MForm->input('secretkey');
					?>
					{{if $current_action=='admin_add'}}
					<a class="btn btn-primary" href="javascript:window.location.reload();">刷新生成一组新的key</a>
					{{/if}}
					<?php	
					echo $this->MForm->input('company');
                    echo $this->MForm->input('creator');

					echo $this->MForm->input('domain',array('rows' => '4', 'cols' => '80')); 
echo $this->MForm->input('price');
echo $this->MForm->input('started');
echo $this->MForm->input('ended');
echo $this->MForm->input('remark');

echo $this->MForm->input('custom_menu',array('rows' => '4', 'cols' => '80'));


				     ?>
				     <div class="clearfix"></div>
                </div>
                 <div id="article-publishing"  class="tab-pane">
                 	<?php
                 	
					echo $this->MForm->input('company_id');
                 	echo $this->MForm->swfupload('logo');
					echo $this->MForm->input('show_icon',array('default'=>1));
					echo $this->MForm->input('show_copyright',array('default'=>1));
					echo $this->MForm->input('multi_domain',array('default'=>1));

					
					echo $this->MForm->input('showOneLayout');
					echo $this->MForm->input('showColorPlan');

                    echo '<hr>';

                 	echo $this->MForm->input('created');
				    echo $this->MForm->input('updated');	
                	?>
                 </div> 
       </div>
 
    
    <div class="form-group">
    	<label class="col-sm-2 control-label"></label>
    	<div class="col-sm-10 controls"><?php echo $this->MForm->submit(__('Submit'),array('id'=>'btnsubmit')); ?></div>
    </div>
    </fieldset>
	{{$this->MForm->end()}}
</div>
